<template>
	
</template>
<script>
	

	export default {
		name: "NativeGameplay",
		
		props: {
			// 轮播图数据
			hotList: {
				type: Array,
				default: () => []
			},
			// 瀑布流左侧列表数据
			leftList: {
				type: Array,
				default: () => []
			},
			// 瀑布流右侧列表数据
			rightList: {
				type: Array,
				default: () => []
			},
			// 长按帖子的ID，用于显示特效
			activeLongPressPostId: {
				type: [String, Number],
				default: null
			},
			// 加载状态: 'loadmore', 'loading', 'nomore'
			loadStatus: {
				type: String,
				default: 'loadmore'
			}
		},
		data() {
			return {
				
			};
		},
		
		
		
		methods: {
			
		}
	}
</script>


<style lang="scss" scoped>
	// 添加吸顶标签样式
	.sticky-tabs {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 999;
		background-color: #fff;
		box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);

		.tabsList--sticky {
			padding: 10rpx 30rpx 0;
		}
	}

	.tabsList {
		display: flex;
		height: 144rpx;
		padding: 30rpx 30rpx 0;
		gap: 20rpx;
		background-color: #fff;

		.tabsList-item {
			flex: 1;
			text-align: center;
			position: relative;

			.tabsList-item-img {
				width: 100%;
				height: 132rpx;
				border-radius: 10rpx;
				overflow: hidden;

				image {
					width: 100%;
					height: 100%;
					display: block;
				}
			}

			.tabsList-item-title {
				position: absolute;
				bottom: 14rpx;
				left: 0;
				right: 0;
				border-radius: 0 0 10rpx 10rpx;
				text-align: center;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				padding: 0 10rpx;
				box-sizing: border-box;
			}

			.tabsList-item-title-show {
				height: 56rpx;
				line-height: 56rpx;
				color: rgba(0, 0, 0, 1);
				font-size: 26rpx;
				font-weight: 700;
			}

			.tabsList-item-title-hidden {
				height: 56rpx;
				line-height: 56rpx;
				color: rgba(0, 0, 0, 1);
				font-size: 24rpx;
				font-weight: 400;
			}

			.tabsList-item-top {
				position: absolute;
				top: -20rpx;
				left: 88rpx;
				right: 0;

				image {
					width: 48rpx;
					height: 44rpx;
				}
			}
		}
	}

	.header {
		background: linear-gradient(to bottom, #ffe0a6, #fcf4ea);
		padding-top: 77rpx;
		padding-bottom: 10rpx;

		.header-top {
			margin: 0 27rpx;
			display: flex;
			justify-content: space-between;
			height: 50rpx;
			line-height: 50rpx;

			.header-top-left {
				display: flex;

				.header-top-left-image {
					width: 50rpx;
					height: 50rpx;
				}

				.header-top-left-titleImage {
					margin-left: 10rpx;
					width: 190rpx;
					height: 50rpx;
				}

				.header-top-left-address {
					font-size: 30rpx;
					font-weight: 400;
					margin-left: 18rpx;
				}

				.clickDown {
					width: 26rpx;
					height: 26rpx;
					margin-top: 12rpx;
					margin-left: 4rpx;

					image {
						width: 26rpx;
						height: 26rpx;
					}
				}
			}

			.header-top-right {
				display: flex;
				height: 50rpx;

				.weather-left {
					line-height: 50rpx;
					font-size: 40rpx;
					font-weight: 500;
					color: rgba(0, 0, 0, 1);
				}

				.weather-middle {
					margin-left: 10rpx;

					.weather-middle-top {
						font-size: 20rpx;
						font-weight: 400;
						color: rgba(0, 0, 0, 1);
						line-height: 24rpx;
						margin-bottom: 5rpx;
					}

					.weather-middle-bottom {
						font-size: 18rpx;
						font-weight: 400;
						color: rgba(0, 0, 0, 1);
						line-height: 16rpx;
					}
				}

				.weather-right {
					margin-left: 10rpx;
					width: 42rpx;
					height: 46rpx;

					image {
						width: 42rpx;
						height: 46rpx;
					}
				}

			}
		}

		.middle-search {
			margin: 20rpx 27rpx 0 27rpx;

			.middle-search-ipt {
				background-color: #fff;
				height: 60rpx;
				border-radius: 20rpx;
			}

			.middle-search-box {
				background-color: #fff;
				height: 60rpx;
				border-radius: 20rpx;
				display: flex;
				line-height: 60rpx;
				font-size: 26rpx;
				font-weight: 400;
				color: rgba(77, 77, 86, 1);

				.middle-search-box-top {
					margin-top: 8rpx;
					margin: 8rpx 10rpx 8rpx 20rpx;
				}
			}
		}

		.PopularTags {
			margin: 20rpx;

			.PopularTags-tab {
				border-radius: 10rpx;
				height: 40rpx;
				line-height: 40rpx;
				background-color: #fff;
				margin-right: 10rpx;
				padding: 0 10rpx;
				color: rgba(203, 203, 204, 1);
				font-size: 24rpx;
				font-weight: 400;
				text-align: center;
				border: 1px solid rgba(203, 203, 204, 1);
				min-width: 100rpx;
			}
		}

		.footer {
			margin: 20rpx 27rpx;

			.footer-swiper {}

			.footer-tabs {
				margin: 20rpx 0;
				display: grid;
				grid-template-columns: repeat(3, 1fr);
				gap: 10rpx;

				.footer-tabs-tab {
					box-sizing: border-box;
					display: flex;
					background-color: #fff;
					border-radius: 28rpx;
					padding: 10rpx;
					height: 120rpx;
					transition: all 0.3s ease;
					/* 添加过渡效果 */
					transform-origin: center;
					/* 设置缩放中心点 */

					.footer-tabs-tab-imgBox {
						width: 60rpx;
						height: 60rpx;
						margin: 22rpx 0;

						image {
							width: 60rpx;
							height: 60rpx;
						}
					}

					.footer-tabs-tab-text {
						margin-left: 10rpx;
						display: flex;
						flex-direction: column;
						justify-content: center;

						.footer-tabs-tab-text-top {
							font-size: 30rpx;
							font-weight: 700;
							color: #000;
							height: 44rpx;
							line-height: 44rpx;
						}

						.footer-tabs-tab-text-bottom {
							font-size: 22rpx;
							font-weight: 500;
							color: #787882;
							height: 44rpx;
							line-height: 44rpx;
						}
					}
				}

				/* 选中状态样式 */
				.footer-tabs-tab-active {
					transform: scale(1.1);
					/* 放大1.2倍 */
					z-index: 10;
					box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.15);
					// background: linear-gradient(to bottom right, #ffe0a6, #fcf4ea);
					background: linear-gradient(to bottom right, #fCC6AC 30%, #F8F8F8 70%);

					/* 从右上到左下的渐变色 */

				}

				/* 未选中状态样式 */
				.footer-tabs-tab-inactive {
					transform: scale(0.9);
					/* 正常大小 */
					box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
					opacity: 0.9;
				}
			}


		}
	}

	.tabsListRow-sticky-links {
		margin: 0 30rpx 10rpx;

		.tabsListStyle {
			box-sizing: border-box;
			display: flex;
			width: 100%;
			height: 60rpx;

			.tabsListStyle-box {
				flex: 1; // 使用flex布局自动分配宽度
				text-align: center;
				padding: 10rpx 0;

				.tabsListStyle-name {
					height: 40rpx;
					line-height: 40rpx;
					font-size: 27rpx;
					font-weight: 500;
				}

				.tabsListStyle-name.selected {
					font-weight: 800;
				}

				.tabsListStyle-line {
					height: 40rpx;
					position: relative;
					top: -30rpx;
					z-index: -1;

					image {
						width: 114rpx;
						height: 20rpx;
					}
				}
			}
		}
	}

	.tabsList {
		display: flex;
		height: 144rpx;
		/* 增加高度以容纳标题 */
		padding: 30rpx 30rpx 0;
		/* 添加底部边距 */
		gap: 20rpx;

		.tabsList-item {
			flex: 1;
			text-align: center;
			position: relative;

			.tabsList-item-img {
				width: 100%;
				height: 132rpx;
				/* 固定图片高度 */
				border-radius: 10rpx;
				overflow: hidden;

				image {
					width: 100%;
					height: 100%;
					display: block;
				}
			}

			.tabsList-item-title {
				position: absolute;
				bottom: 14rpx;
				left: 0;
				right: 0;
				border-radius: 0 0 10rpx 10rpx;
				text-align: center;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				padding: 0 10rpx;
				box-sizing: border-box;
			}

			.tabsList-item-title-show {
				height: 56rpx;
				line-height: 56rpx;
				color: rgba(0, 0, 0, 1);
				font-size: 26rpx;
				font-weight: 700;
			}

			.tabsList-item-title-hidden {
				height: 56rpx;
				line-height: 56rpx;
				color: rgba(0, 0, 0, 1);
				font-size: 24rpx;
				font-weight: 400;
			}

			.tabsList-item-top {
				position: absolute;
				top: -20rpx;
				left: 88rpx;
				right: 0;

				image {
					width: 48rpx;
					height: 44rpx;
				}
			}
		}
	}

	.hot-swiper {
		height: 380rpx;
		margin-bottom: 30rpx;
		/* 新增：允许子元素溢出，以看到完整的缩放和层叠效果 */
		overflow: visible;

		.swiper-item-wrapper {
			height: 98%;
			/* 修改：添加过渡效果，并设置默认的缩小状态 */
			transition: all 0.3s ease-in-out;
			transform: scale(0.85); // 非激活状态缩小
			position: relative; // 必须设置，z-index才会生效
			border-radius: 20rpx; // 默认圆角
			overflow: hidden;
			border: 4rpx solid #FFD44F;
			border-radius: 50rpx 20rpx 50rpx 20rpx;

			/* 激活状态的样式 */
			&.is-active {
				transform: scale(1); // 恢复原大小
				z-index: 2; // 提升层级，使其显示在最前面
			}

			.swiper-image {
				width: 100%;
				height: 100%;
			}

			.hotness-indicator {
				position: absolute;
				top: 20rpx;
				left: 20rpx;
				background-color: rgba(0, 0, 0, 0.4);
				color: #fff;
				font-size: 22rpx;
				padding: 8rpx 16rpx;
				border-radius: 30rpx;
				display: flex;
				align-items: center;
				z-index: 2;

				.icon-tzwf-rd {
					font-size: 30rpx;
					color: #FF5544;
				}

				text {
					margin-left: 8rpx;
				}
			}

			.favorite-icon {
				position: absolute;
				top: 20rpx;
				right: 20rpx;
				z-index: 2;
			}

			.info-overlay {
				position: absolute;
				bottom: 0;
				left: 0;
				right: 0;
				height: 60%; // 遮罩高度，可调整
				background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
				border-radius: 0 0 20rpx 20rpx; // 底部圆角与父容器一致
				z-index: 3; // 在白色卡片之下，图片之上
			}

			// 新的信息容器，用于定位
			.info-container {
				position: absolute;
				bottom: 20rpx;
				left: 20rpx;
				right: 20rpx;
				z-index: 4;
				display: flex;
				flex-direction: column;
				background-color: rgba(255, 255, 255, 0.2);
				border-start-end-radius: 10rpx;
				border-start-start-radius: 50rpx;
				border-end-end-radius: 50rpx;
				border-end-start-radius: 10rpx;
				box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);

				// 实现毛玻璃效果
				backdrop-filter: blur(4px);
				-webkit-backdrop-filter: blur(15px); // 兼容iOS
			}

			// 作者信息药丸样式
			.author-pill {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 10rpx 30rpx;
				// width: 95%; // 宽度略小于父容器
				z-index: 3; // 确保在标题卡片之上

				.author-info {
					display: flex;
					align-items: center;

					.author-avatar {
						width: 40rpx;
						height: 40rpx;
						border: 2rpx solid #fff;
						border-radius: 50%;
					}

					.author-name {
						margin-left: 12rpx;
						font-size: 26rpx;
						font-weight: 700;
						letter-spacing: 3rpx;
						color: #fff;
					}
				}

				.location-info {
					display: flex;
					align-items: center;
					font-size: 24rpx;
					color: #fff;

					.icon-dingwei {
						color: #ffffff;
						font-size: 25rpx;
					}

					.location-text {
						margin-left: 8rpx;
					}
				}
			}

			// 标题卡片样式
			.title-card {
				background-color: rgba(255, 255, 255, 0.9);

				border-start-end-radius: 10rpx;
				border-start-start-radius: 40rpx;
				border-end-end-radius: 50rpx;
				border-end-start-radius: 10rpx;
				padding: 15rpx 30rpx;

				.swiper-title {
					font-size: 32rpx;
					font-weight: bold;
					color: #303133;
					display: block; // 确保可以设置内外边距
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}
		}
	}
</style>